package com.wangku.springmvc.utils;

import org.springframework.context.ApplicationContext;

/**
 * 项目名称：
 * @author:
 * 
*/
public class Const {
	public static final String KG_URL="http://kuaigou.99114.com/"; //快购通用
	public static final String KG_IMG_URL = "/data/shopimage/";
	public static final String SESSION_SECURITY_CODE = "sessionSecCode";
	public static final String SESSION_USER = "sessionUser";
	public static final String SESSION_ShopUser = "sessionShopUser";            //会员SESSION
	public static final String AUTHORIZE_AUSER = "authorizeAuser";            //授权用户
	public static final String SESSION_ROLE_RIGHTS = "sessionRoleRights";
	public static final String SESSION_menuList = "menuList";			//当前菜单
	public static final String SESSION_allmenuList = "allmenuList";		//全部菜单
	public static final String SESSION_allmenuListMap = "allmenuListMap";		//全部菜单
	public static final String SESSION_QX = "QX";
	public static final String SESSION_userpds = "userpds";			
	public static final String SESSION_USERROL = "USERROL";				//用户对象
	public static final String SESSION_USERNAME = "USERNAME";			//用户名
	public static final String SESSION_LAST_URL="lasturl";
	public static final String SESSION_NAV="navigationmenu";
	public static final String TRUE = "T";
	public static final String FALSE = "F";
	public static final String LOGIN = "/login_toLogin.do";				//登录地址
//	public static final String SYSNAME = "admin/config/SYSNAME.txt";	//系统名称路径
	public static final String PAGE	= "admin/config/PAGE.txt";			//分页条数配置路径
	public static final String EMAIL = "admin/config/EMAIL.txt";		//邮箱服务器配置路径
	public static final String SMS1 = "admin/config/SMS1.txt";			//短信账户配置路径1
	public static final String SMS2 = "admin/config/SMS2.txt";			//短信账户配置路径2
	public static final String FWATERM = "admin/config/FWATERM.txt";	//文字水印配置路径
	public static final String IWATERM = "admin/config/IWATERM.txt";	//图片水印配置路径
	public static final String WEIXIN	= "admin/config/WEIXIN.txt";	//微信配置路径
	public static final String SITESET	= "admin/config/SITESET.txt";	//网站配置路径
	public static final String SITESETEN	= "admin/config/SITESETEN.txt";	//网站配置EN路径
	public static final String SITESETAR	= "admin/config/SITESETAR.txt";	//网站配置AR路径
	public static final String FILEPATHIMG = "uploadFiles/uploadImgs/";	//图片上传路径
	public static final String HEADPATHIMG = "/headimg/";	//图片上传路径
	public static final String FILEPATHIMG_BRAND = "/brand/";//品牌图片的路径
	public static final String FILEPATHIMG_MEMBER = "uploadFiles/uploadImgs/member/";//品牌图片的路径
	public static final String FILEPATHFILE = "uploadFiles/file/";		//文件上传路径
	public static final String FILEPATHTWODIMENSIONCODE = "/twoDimensionCode/"; //二维码存放路径uploadFiles
	public static final String FILEPATHDRUGCODE = "uploadFiles/drugCode/"; //监管码存放路径uploadFiles
	public static final String SYSNAME ="快购商城";

	public static final String NO_INTERCEPTOR_PATH = ".*/((wxChat/login)|(shopUser/loginPage)|(front)|(shopUserManage/*)|(tab)|(head)||(logout)|(code)|(weixin)|(static)|(reg)|(web)|(main)|(websocket)|(plugins)|(uploadFiles)|(index)|(search)|(crossdomain)|(test)|(api)|(wxapplet)|(uploadFiles)|(uplord)|(route)|(memberLogin)|(register)|(SDKConfig)|(notPass)|(shopUser)|(forgetPasswordPage)|(login)|(logout)|(code)|(weixin)|(static)|(reg)|(web)|(main)|(websocket)|(plugins)|(uploadFiles)|(index)|(search)|(crossdomain)|(test)).*";	//不对匹配该值的访问路径拦截（正则）
	//public static final String INTERCEPTOR_NO_REG = ".*/((Shoplist)|(goods)|(guide)|(selectShop)|(accountSetting)).*";	//只拦截（正则）
	public static final String INTERCEPTOR_NO_REG = ".*/((bank)|(Shoplist)|(goods)|(guide)|(selectShop)|(accountSetting)|(commodity/toGrouping.do)|(shop/toMendian)|(shopAudit/tojyyb)|(shopManager/manList)|(shopManager/toAddMan)|(freightModel/tofreightModel.do)|(freightModel/toAddfreightModel.do)|(commodity/addGrouping.do)|(orderForm/all.do)|(orderForm/rightsProtection.do)|(orderForm/fenxiaoOrders.do)|(distribution/template.do)|(distribution/list.do)|(money/getMoneyDetail)|(money/awaitClose.do)|(buyer/all.do)|(poster/shopTuiguang.do)|(poster/beautifyqrcode.do)|(applyDistributor)|(coupon)).*";	//只拦截（正则）
	public static final String FRIENDLYLINKIMGS="uploadFiles/uploadImgs/friendlyLinkImgs/";//友情链接图片保存路径
	public static final String EXHIBITIONIMGS="uploadFiles/uploadImgs/exhibitionImgs/";//展会图片保存路径

	public static final String MEMBER_INTERCEPTOR_PATH=".*/((doctor)|(patient)|(manager)|(pharmacist)|(represent)|(checker)|(common)).*";//会员用户
	
	public static final String MEMBER_LOGIN="/memberLogin";	
	public static String ISCHECK="isCheck";
	public static ApplicationContext WEB_APP_CONTEXT = null; //该值会在web容器启动时由WebAppContextListener初始化
	
	public static String OPEN_ID="OPEN_ID";  //openid
	public static String ORIGIN_ID="ORIGIN_ID";//来源id
	public static String WARE_ID="WARE_ID";//药品id
	public static String TOUSERTYPE="TOUSERTYPE";//用户类型
	public static final String PAY_OPEN_ID="pay_open_id";//支付的openid
	/**
	 * APP Constants
	 */
	//app注册接口_请求协议参数)
	public static final String[] APP_REGISTERED_PARAM_ARRAY = new String[]{"countries","uname","passwd","title","full_name","company_name","countries_code","area_code","telephone","mobile"};
	public static final String[] APP_REGISTERED_VALUE_ARRAY = new String[]{"国籍","邮箱帐号","密码","称谓","名称","公司名称","国家编号","区号","电话","手机号"};
	
	//app根据用户名获取会员信息接口_请求协议中的参数
	public static final String[] APP_GETAPPUSER_PARAM_ARRAY = new String[]{"USERNAME"};
	public static final String[] APP_GETAPPUSER_VALUE_ARRAY = new String[]{"用户名"};
	//角色注册URL路径
	public static final String DOCTOR_REGISTER="/doctor/register/goregister";	
	public static final String PATIENT_REGISTER="/patient/register/goregister";	
	public static final String PHARMACIST_REGISTER="/pharmacist/register/goregister";	
	public static final String REPRESENT_REGISTER="/represent/register/goregister";	
	public static final String MANAGER_REGISTER="/manager/register/goregister";
	public static final String CHECKER_REGISTER="/checker/register/goregister";
	//角色完善资料URL路径
	public static final String DOCTOR_INFO="/doctor/register/gocominfo";	
	public static final String PATIENT_INFO="/patient/register/gocominfo";	
	public static final String PHARMACIST_INFO="/pharmacist/register/gocominfo";	
	public static final String REPRESENT_INFO="/represent/register/gocominfo";	
	public static final String CHECKER_INFO="/checker/register/gocominfo";	
	//角色主页URL路径
	public static final String DOCTOR_INDEX="/doctor/stock/myFund";	
	public static final String PATIENT_INDEX="/patient/patientHome/toHome";	
	public static final String PATIENT_PRODUCT="/patient/patBuyware/toWareDetail.do?id=";	
	public static final String PHARMACIST_INDEX="/pharmacist/stock/myFund";	
	public static final String REPRESENT_INDEX="/represent/stock/myFund";	
	public static final String MANAGER_INDEX="/manager/stock/myFund";
	public static final String CHECKER_INDEX="/checker/stock/myFund";
	//审核拦截
	public static final String NOTPASS="/notPass";
	
	//列表条数
	public static final int PAGE_COUNT =16;
	//评论列表 二级评论条数
	public static final int SECOND_COMMENT_COUNT = 3;
	
	/**
	 * app 登录信息
	 */
	public static final String LOGIN_INFO = "login_info";
	
	public static final String TOKEN_NAME = "token";
	public static final String DTOKEN_NAME = "deviceToken";
	// 短信接口账号
	public static final String SMS_NAME = "zs_wkyzm";
	// 短信接口密码
	public static final String SMS_PASSOWRD = "wkyzm123";
}
